import request from '@/utils/request'

// 查询房间设备列表
export function listHlroomdevice(query) {
  return request({
    url: '/hotel/hlroomdevice/list',
    method: 'get',
    params: query
  })
}

// 根据房间类型名查房间设备
export function DataHlroomdeviceByRoomTypeName(roomTypeName) {
  return request({
    url: '/hotel/hlroomdevice/name',
    method: 'get',
    params:{
      roomTypeName: roomTypeName
    }
  })
}

// 查询房间设备
export function getHlroomdevice(id) {
  return request({
    url: '/hotel/hlroomdevice/' + id,
    method: 'get'
  })
}

// 新增房间设备房间类型和JSON
export function addHlroomTypeAndJson(data) {
  return request({
    url: '/hotel/hlroomdevice/add',
    method: 'post',
    data: data
  })
}


// 修改房间设备
export function updateRoomDevice(data) {
  return request({
    url: '/hotel/hlroomdevice/edit',
    method: 'put',
    data: data
  })
}




// 删除房间设备
export function delHlroomdevice(id) {
  return request({
    url: '/hotel/hlroomdevice/' + id,
    method: 'delete'
  })
}
